home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / graphics / copper.h < prev    next >
C/C++ Source or Header  |  1988-11-20  |  1KB  |  69 lines

  1. #ifndef    GRAPHICS_COPPER_H
  2. #define    GRAPHICS_COPPER_H
  3. #ifndef EXEC_TYPES_H
  4. #include "exec/types.h"
  5. #endif
  6. #define    COPPER_MOVE    0
  7. #define    COPPER_WAIT    1
  8. #define    CPRNXTBUF    2
  9. #define    CPR_NT_LOF    0x8000
  10. #define    CPR_NT_SHT    0x4000
  11. struct    CopIns
  12. {
  13. short    OpCode;
  14. union
  15. {
  16. struct    CopList    *nxtlist;
  17. struct
  18. {
  19. union
  20. {
  21. SHORT    VWaitPos;
  22. SHORT    DestAddr;
  23. }    u1;
  24. union
  25. {
  26. SHORT    HWaitPos;
  27. SHORT    DestData;
  28. }    u2;
  29. }    u4;
  30. }    u3;
  31. };
  32. #define    NXTLIST    u3.nxtlist
  33. #define    VWAITPOS    u3.u4.u1.VWaitPos
  34. #define    DESTADDR    u3.u4.u1.DestAddr
  35. #define    HWAITPOS    u3.u4.u2.HWaitPos
  36. #define    DESTDATA    u3.u4.u2.DestData
  37. struct    cprlist
  38. {
  39. struct    cprlist    *Next;
  40. UWORD    *start;
  41. SHORT    MaxCount;
  42. };
  43. struct    CopList
  44. {
  45. struct    CopList    *Next;
  46. struct    CopList    *_CopList;
  47. struct    ViewPort    *_ViewPort;
  48. struct    CopIns    *CopIns;
  49. struct    CopIns    *CopPtr;
  50. UWORD    *CopLStart;
  51. UWORD    *CopSStart;
  52. SHORT    Count;
  53. SHORT    MaxCount;
  54. SHORT    DyOffset;
  55. };
  56. struct    UCopList
  57. {
  58. struct    UCopList    *Next;
  59. struct    CopList    *FirstCopList;
  60. struct    CopList    *CopList;
  61. };
  62. struct    copinit
  63. {
  64. UWORD    diagstrt[4];
  65. UWORD    sprstrtup[(2*8*2)+2+(2*2)+2];
  66. UWORD    sprstop[2];
  67. };
  68. #endif
  69.